import { mergeOptions } from "./utils"

export function initGlobalAPI(Vue) {
  // 全局静态方法
  Vue.options = {}
  Vue.mixin = function (mixin) {
    this.options = mergeOptions(this.options, mixin)
    return this
  }
}